package com.fitns.user.exception;

public enum SysDictMsgCode implements MsgCode {
    SYS_DICT_CODE_IS_EXIST(50001, "字典代码已存在！"),
    SYS_DICT_ID_IS_NULL(50002,"id不能为空"),
    SYS_DICT_DATA_IS_NOT_EXIST(50003,"该项不存在"),
    SYS_DICT_DATA_IS_NULL(50004,"对象不能为空"),
    SYS_DICT_NAME_IS_NULL(50005,"名称为空");


    private int code;
    private String message;

    SysDictMsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}